using System;
using UnityEngine;

[Serializable]
public class firsttimemusic : MonoBehaviour
{
	private int w;

	private int h;

	public void Start()
	{
		if (PlayerPrefs.HasKey("HQGraphics"))
		{
			QualitySettings.SetQualityLevel(PlayerPrefs.GetInt("HQGraphics"), applyExpensiveChanges: true);
		}
		else if (SystemInfo.processorCount > 1)
		{
			QualitySettings.SetQualityLevel(1, applyExpensiveChanges: true);
		}
		QualitySettings.antiAliasing = PlayerPrefs.GetInt("MSAA") * 2;
		if (PlayerPrefs.HasKey("Width") && PlayerPrefs.HasKey("Height"))
		{
			w = PlayerPrefs.GetInt("Width");
			h = PlayerPrefs.GetInt("Height");
		}
		Screen.sleepTimeout = -1;
		if (!PlayerPrefs.HasKey("MusicVolume"))
		{
			PlayerPrefs.SetFloat("MusicVolume", 0.7f);
		}
		if (!PlayerPrefs.HasKey("Trails"))
		{
			PlayerPrefs.SetInt("Trails", 1);
		}
		if (!PlayerPrefs.HasKey("Vibration"))
		{
			PlayerPrefs.SetInt("Vibration", 0);
		}
		if (!PlayerPrefs.HasKey("HQGraphics"))
		{
			PlayerPrefs.SetInt("HQGraphics", 1);
		}
		if (!PlayerPrefs.HasKey("AutoCalibrate"))
		{
			PlayerPrefs.SetInt("AutoCalibrate", 1);
		}
		if (!PlayerPrefs.HasKey("FPSLimit"))
		{
			PlayerPrefs.SetInt("FPSLimit", 60);
		}
		PlayerPrefs.SetInt("Width", Screen.width);
		PlayerPrefs.SetInt("Height", Screen.height);
		PlayerPrefs.SetInt("WidthLow", (int)Mathf.Clamp((float)Screen.width / 1.5f, 300f, 10000f));
		PlayerPrefs.SetInt("HeightLow", (int)Mathf.Clamp((float)Screen.height / 1.5f, 200f, 10000f));
		if (!PlayerPrefs.HasKey("AttackState"))
		{
			PlayerPrefs.SetInt("AttackState", 1);
		}
		if (!PlayerPrefs.HasKey("BaseState"))
		{
			PlayerPrefs.SetInt("BaseState", 1);
		}
		if (!PlayerPrefs.HasKey("DiskState"))
		{
			PlayerPrefs.SetInt("DiskState", 1);
		}
		if (!PlayerPrefs.HasKey("ChipState"))
		{
			PlayerPrefs.SetInt("ChipState", 1);
		}
		PlayerPrefs.SetInt("Arcade", 1);
		if (!PlayerPrefs.HasKey("32Bit"))
		{
			PlayerPrefs.SetInt("32Bit", 1);
		}
		PlayerPrefs.SetInt("Vignetting", 1);
		if (!PlayerPrefs.HasKey("SelectedTop"))
		{
			PlayerPrefs.SetString("SelectedTop", "Top1");
		}
		if (PlayerPrefs.HasKey("bey4"))
		{
			PlayerPrefs.SetInt("Top4", 1);
		}
		if (PlayerPrefs.HasKey("bey5"))
		{
			PlayerPrefs.SetInt("Top5", 1);
		}
		if (PlayerPrefs.HasKey("bey6"))
		{
			PlayerPrefs.SetInt("Top6", 1);
		}
		if (PlayerPrefs.HasKey("bey7"))
		{
			PlayerPrefs.SetInt("Top7", 1);
		}
		if (PlayerPrefs.HasKey("bey8"))
		{
			PlayerPrefs.SetInt("Top8", 1);
		}
		if (PlayerPrefs.HasKey("bey9"))
		{
			PlayerPrefs.SetInt("Top9", 1);
		}
		if (PlayerPrefs.HasKey("bey10"))
		{
			PlayerPrefs.SetInt("Top10", 1);
		}
		if (PlayerPrefs.HasKey("bey11"))
		{
			PlayerPrefs.SetInt("Top11", 1);
		}
		if (PlayerPrefs.GetInt("DgSattack") == 1)
		{
			PlayerPrefs.SetInt("Attack4", 1);
		}
		if (PlayerPrefs.GetInt("DgSbase") == 1)
		{
			PlayerPrefs.SetInt("Base4", 1);
		}
		if (PlayerPrefs.GetInt("DgSchip") == 1)
		{
			PlayerPrefs.SetInt("Chip4", 1);
		}
		if (PlayerPrefs.GetInt("DFattack") == 1)
		{
			PlayerPrefs.SetInt("Attack5", 1);
		}
		if (PlayerPrefs.GetInt("DFbase") == 1)
		{
			PlayerPrefs.SetInt("Base5", 1);
		}
		if (PlayerPrefs.GetInt("DFchip") == 1)
		{
			PlayerPrefs.SetInt("Chip5", 1);
		}
		if (PlayerPrefs.GetInt("BSattack") == 1)
		{
			PlayerPrefs.SetInt("Attack6", 1);
		}
		if (PlayerPrefs.GetInt("BSbase") == 1)
		{
			PlayerPrefs.SetInt("Base6", 1);
		}
		if (PlayerPrefs.GetInt("BSchip") == 1)
		{
			PlayerPrefs.SetInt("Chip6", 1);
		}
		if (PlayerPrefs.GetInt("DcSattack") == 1)
		{
			PlayerPrefs.SetInt("Attack7", 1);
		}
		if (PlayerPrefs.GetInt("DcSbase") == 1)
		{
			PlayerPrefs.SetInt("Base7", 1);
		}
		if (PlayerPrefs.GetInt("DcSchip") == 1)
		{
			PlayerPrefs.SetInt("Chip7", 1);
		}
		if (PlayerPrefs.GetInt("WBattack") == 1)
		{
			PlayerPrefs.SetInt("Attack8", 1);
		}
		if (PlayerPrefs.GetInt("WBbase") == 1)
		{
			PlayerPrefs.SetInt("Base8", 1);
		}
		if (PlayerPrefs.GetInt("WBchip") == 1)
		{
			PlayerPrefs.SetInt("Chip8", 1);
		}
		if (PlayerPrefs.GetInt("TGattack") == 1)
		{
			PlayerPrefs.SetInt("Attack9", 1);
		}
		if (PlayerPrefs.GetInt("TGbase") == 1)
		{
			PlayerPrefs.SetInt("Base9", 1);
		}
		if (PlayerPrefs.GetInt("TGchip") == 1)
		{
			PlayerPrefs.SetInt("Chip9", 1);
		}
		if (PlayerPrefs.GetInt("FLattack") == 1)
		{
			PlayerPrefs.SetInt("Attack10", 1);
		}
		if (PlayerPrefs.GetInt("FLbase") == 1)
		{
			PlayerPrefs.SetInt("Base10", 1);
		}
		if (PlayerPrefs.GetInt("FLchip") == 1)
		{
			PlayerPrefs.SetInt("Chip10", 1);
		}
		if (PlayerPrefs.GetInt("ABattack") == 1)
		{
			PlayerPrefs.SetInt("Attack11", 1);
		}
		if (PlayerPrefs.GetInt("ABbase") == 1)
		{
			PlayerPrefs.SetInt("Base11", 1);
		}
		if (PlayerPrefs.GetInt("ABchip") == 1)
		{
			PlayerPrefs.SetInt("Chip11", 1);
		}
		if (!PlayerPrefs.HasKey("Sensitivity"))
		{
			PlayerPrefs.SetFloat("Sensitivity", 1f);
		}
		PlayerPrefs.Save();
	}

	public void Main()
	{
	}
}
